<div class="floatLeft">
<?php if ($this->pageCount): ?>
<div class="pages">
<!-- Ссылка на первую страницу -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url(array('page' => $this->first)); ?>">&laquo</a>
<?php else: ?>
  <span class="disabled">&laquo</span>
<?php endif; ?>

<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">
    &lsaquo;
  </a>
<?php else: ?>
  <span class="disabled">&lsaquo;</span>
<?php endif; ?>


<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <a href="<?php echo $this->url(array('page' => $page)); ?>">
        <?php echo $page; ?>
    </a>
  <?php else: ?>
    <?php echo "<b style='color:black'>".$page."</b>" ?>
  <?php endif; ?>
<?php endforeach; ?>

<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url(array('page' => $this->next)); ?>">
    &rsaquo;
  </a>
<?php else: ?>
  <span class="disabled">&rsaquo;</span>
<?php endif; ?>

  <!-- Ссылка на последнюю страницу -->
<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url(array('page' => $this->last)); ?>">&raquo</a>
<?php else: ?>
  <span class="disabled">&raquo</span>
<?php endif; ?>
  &nbsp;<?php echo $this->trans->_('goToPage');?>:
  
    <input min="1" type="number" max="<?php echo $this->last; ?>" value="1" step="1" class="iGoPgae" rel="<?php echo $this->url(array('page' => 'replaceThisValue')); ?>" style="width:50px">
    <a href="javascript:void(0);" onclick="return prepareURL($(this).prev())">
    <?php echo $this->trans->_('goAction');?></a>
  
<span class="per_page">&nbsp <?php echo $this->trans->_('per_page') ; ?>:
<?php
	$onPage = array(10,20,50,100);
        foreach ($onPage as $j){
		if($j!=$this->onPage){
			echo " <a href=\"".$this->url(array('page' => 1, 'onPage'=>$j))."\">$j</a> ";
		}
		else echo "<span> $j </span>";
	}
?>


</span>
    <?php if($this->countRow) { ?>
    <span style="padding-top: 3px;">
           &nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->trans->_('detect') ; ?>
           <strong><?php echo $this->countRow; ?></strong> <?php echo ($this->countRow != 1) ? $this->trans->_('rows') : $this->trans->_('row') ; ?>
    </span>
<?php } ?>
</div>
<?php endif; ?>
</div>
